@import "../../assets/css/theme";
/*----------------------------------
          ball selection
----------------------------------*/
@keyframes bounce {
  40% { transform: scale(1.35)}
}
$ball-height: 3rem;
$ball-height-sm: 2.5rem;
.ball {
  display: inline-block;
  border: .5px solid transparent;
  text-align: center;
  line-height: $ball-height-sm;
  height: $ball-height-sm;
  width: $ball-height-sm;
  border-radius: 25rem;
  font-size: 1.125rem;
  cursor: pointer;
  will-change: scale;
  &.on {
    animation: bounce .3s cubic-bezier(0.2, 0.55, 0.3, 1);
  }
}
.ball-sm .ball {
  line-height: $ball-height-sm;
  height: $ball-height-sm;
  width: $ball-height-sm;
}
b.ball {
  border-color: $color-grey-light;
  color: $color-red;
  &.on {
    border-color: $color-red;
    background: $color-red;
    color: #fff;
  }
}
a.ball, .ball-blue .ball {
  color: $color-blue;
  &.on {
    border-color: $color-blue;
    background: $color-blue;
    color: #fff;
  }
}
.ball-group {
  display: flex;
  text-align: center;
  margin-bottom: .625rem;
  .ball {
    line-height: $ball-height;
    height: $ball-height;
    width: $ball-height;
    & + i {
      display: block;
      color: $color-grey;
    }
  }
}
.tips {
  i { color: $color-green }
  a { color: $color-blue }
  b { color: $color-red }
}
.rule-select {
  padding: .25rem 1rem;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: $border-radius;
  cursor: pointer;
}
.bottom-action {
  display: flex;
  align-items: center;
  background: #fff;
  border-top: .6px solid $color-grey-light;
  height: $footer-height;
  .btn {
    padding: .4rem 2.5rem;
  }
}
/*----------------------------------
          shopping cart
----------------------------------*/
.fixed-header.shopping-cart {
  padding-bottom: 6rem;
  padding-top: 8.5rem;
}
.top-actions {
  // border-bottom: 1px solid $border-color;
  background: $color-grey-bg;
  text-align: center;
  position: fixed;
  width: 100%;
  z-index: 3;
  top: $header-height;
  .action {
    display: flex;
    line-height: 3rem;
    border-bottom: 1px solid $color-grey-light;
    b {
      text-align: center;
      flex-grow: 1;
      &:active {
        background: #ececec;
      }
    }
  }
}
.bet {
  display: flex;
  align-items: center;
  padding: .5rem 1rem .5rem 0;
  em {
    flex-grow: 1;
    border: .6px solid $color-grey-light;
    background: rgba(246, 246, 246, 1);
    padding: .5rem 1rem;
    word-spacing: .25rem;
  }
}
.cart-item {
  transition: all .4s ease-in-out;
  background: #fff;
  border-bottom: .6px solid $color-grey-light;
  padding: .5rem 0;
  z-index: -1;
  width: 100%;
  color: #666;
  .desc {
    margin-left: 3.5rem;
  }
  .iconfont {
    font-size: 1.5rem;
    padding: .15rem 1rem;
    color: #c7c7c7;
  }
}
.cart-enter, .cart-leave-to {
  transform: translateY(-30px);
  opacity: 0;
}
.cart-leave-active {
  position: absolute
}
